<div class="top-action">
	<ul class="links">
		<li><a href="categories-list.php">List Categories</a></li>
	</ul>	
</div>
<div class="form-wrap">
	<form id="categories-add-form" name="categories-add-form" method="post" action="categories-add.php" enctype="multipart/form-data">
	  <table class="data-editor">
	
<!--{*						
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Dimension Width: <span class="required">*</span></td>
		<td>
			<input type="text" name="categories[dimension_width]" value="{$categories.dimension_width|utf8}" class="input" id="categories-dimension_width" />
			<span class="form-hints">Pixels width of proposed images</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Dimension Height: <span class="required">*</span></td>
		<td>
			<input type="text" name="categories[dimension_height]" value="{$categories.dimension_height|utf8}" class="input" id="categories-dimension_height" />
			<span class="form-hints">Pixels height of proposed images</span>
		</td>
	</tr>
*}-->

	<tr class="{cycle values='A,B'}">
	  <td class="attribute">Parent category</td>
	  <td><select name="categories[parent_id]">
	  <option value="0">-- Choose if applies --</option>
	  {html_options options="gallery:categories-parent"|dropdown selected=""}
	  </select>
	  </td>
	  </tr>
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Name: <span class="required">*</span></td>
		<td>
			<input type="text" name="categories[category_name]" value="{$categories.category_name|utf8}" class="input" id="categories-category_name" />
			<span class="form-hints">Category Name</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Keywords: <span class="required">*</span></td>
		<td>
			<input type="text" name="categories[category_keywords]" value="{$categories.category_keywords|utf8}" class="input" id="categories-category_keywords" />
			<span class="form-hints">Some limited list of keywords for this category</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Cover Image: <span class="required">*</span></td>
		<td>
			<input type="text" name="categories[category_coverimage]" value="{$categories.category_coverimage|utf8}" class="input" id="categories-category_coverimage" />
			<span class="form-hints">Cover image</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Description: <span class="required">*</span></td>
		<td class="value">
			<div><textarea rows="5" cols="75" name="categories[category_description]" class="editor" id="categories-category_description">{$categories.category_description|utf8}</textarea></div>
			<p><span class="form-hints">Some details</span></p>		</td>
	</tr>
							
	<tr class="{cycle values='A,B'}">
	  <td class="attribute">&nbsp;</td>
	  <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave it blank. *}-->
		
		<input type="hidden" name="protection_code" value="{$protection_code}" />
		<input type="hidden" name="add-action" value="Add Categories" />
		<input type="submit" name="submit-button" class="submit" value="Add" />
		<a href="{url::last_page('categories-list.php')}" class="button-cancel">Cancel</a>
	  </td>
	</tr>
  </table>
</form>
</div>
<!-- End of administrators Add -->


<!-- Add validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/categories/add.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of categories Add -->